<!--  -->
<template>
  <div>
      <div class="picd">
         <img src="../assets/jd.jpg"/>
     </div>
     <ul>
       <li v-for="item in minnea" class="mineitem" @click="itemclick(item)" :key="item.label">
         <span class="minetitle">{{item.label}}</span>
         <i class="cubeic-arrow"></i>
       </li>
     </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
      minnea:[
        {label:"商品收藏"},
        {label:"我的足记"},
        {label:"我的订单"},
        {label:"退出",type:'exit'},

      ]
    };
  },
    methods:{
      itemclick(item){
            if(item.type=='exit'){
              this.$store.commit('seeoken','')
              localStorage.removeItem('token')
              this.$router.push({path:'/login'})
            }
      }
    }
 
}

</script>
<style>
.mineitem{
      font-size: 14px;
      text-align: left;
      height: 50px;
      line-height: 50px;
      padding-left: 5%;
      border-bottom: 1px solid #eee;
}
.mineitem .minetitle{
  display: inline-block;
  width: 90%;
}
.picd{
    width: 100%;
    height: 200px;
    display: flex;
    align-items:center;
  justify-content: center;
}
.picd img{
   width: 100%;
   height: 200px;
}


</style>
